package com.ruoyi.web.controller.agoniapp;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.pojo.entity.ProductType;
import com.ruoyi.system.service.IAgoniProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/agoniapp/productType")
public class ProductTypeController {

    @Autowired
    private IAgoniProductTypeService productTypeService;

    @GetMapping("/listProductTypes")
    public AjaxResult listProductTypes() {
        List<ProductType> productTypes = productTypeService.selectProductTypeList();

        return AjaxResult.success(productTypes);
    }

}
